//
// Created by Jisam on 2024年10月28日23:10:42
// Solution of  a
#include <bits/stdc++.h>

#define  int long long
#define  endl "\n"
#define  all(x) (x).begin(),(x).end()
#define  pb push_back
using namespace std;


signed main() {
    cin.tie(nullptr)->sync_with_stdio(false);
    int t;
    cin >> t;
    while(t --){
        int x,y,k;
        cin >> x >> y >> k;
        if(x >= k && y >= k){
            cout << 0 << " " << 0 << " " << k << " "<< 0 << endl;
            cout << 0 << " " << 0 << " " << 0 << " "<< k << endl;
        }else{
            
        }
    }


    return 0;
}